<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" media="screen" href="../../css/bootstrap.min.css">
</head>
<style>
    label {
        text-align: right;
    }
</style>
<body>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <form class="form-horizontal" onsubmit="return false" id="form">
        <fieldset>
            <input type="hidden" id="id" name="id">

            <div class='form-group'>
                <label class='col-md-2'>用户id</label>
                <div class='col-md-10'>
                    <span id="userid" style="padding-top: 17px; "></span>
                </div>
            </div>
            <div class='form-group'>
                <label class='col-md-2'>银行</label>
                <div class='col-md-10'>
                    <span id="bank" style="padding-top: 17px; "></span>
                </div>
            </div>
            <div class='form-group'>
                <label class='col-md-2'>银行卡号</label>
                <div class='col-md-10'>
                    <span id="bankcardnumber" style="padding-top: 17px; "></span>
                </div>
            </div>
            <div class='form-group'>
                <label class='col-md-2'>真实姓名</label>
                <div class='col-md-10'>
                    <span id="realname" style="padding-top: 17px; "></span>
                </div>
            </div>


            <div class="form-actions">
                <div class="row" align="center">
                    <div class="col-md-12">
                        <button class="btn btn-primary" onclick="location.href='mfflLawyerList.html'">返回</button>
                    </div>
                </div>
            </div>

        </fieldset>
    </form>
</div>
<script type="text/javascript" src="../../js/libs/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="../../js/jq.js"></script>
<script type="text/javascript" src="../../js/plugin/bootstrapvalidator/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['layer', 'laydate'], function () {
        var layer = layui.layer;
    });

    initData();

    function initData() {
        var userid = getUrlParam("userid");
        if (userid != "") {
            $.ajax({
                type: 'get',
                url: '/mfflBankcards/byUserid/' + userid,
                async: false,
                success: function (data) {
                    $('#id').val(data.id);
                    $('#userid').html(data.userid);
                    $('#bank').html(data.bank);
                    $('#bankcardnumber').html(data.bankcardnumber);
                    $('#realname').html(data.realname);


                }
            });
        }
    }
</script>
</body>
</html>
